package com.zxy.ziems.server.energy.service;

import com.zxy.ziems.server.energy.pojo.dto.DeviceMeasureDateDTO;

import java.time.LocalDate;
import java.util.List;
import java.util.Set;

/**
 * @ClassName: DeviceTypeDataServicel
 * @Author: yanzhiwei
 * @Description:
 * @Date: 2024/4/2 14:37
 */
public interface DeviceTypeDataService {


    /**
     * 设备求和值，各分类统计
     *
     * @param classifyId
     * @param dateType
     * @param start
     * @param end
     * @param deviceIds
     * @param devicePropertyId
     * @return
     */
    List<DeviceMeasureDateDTO> sumTree(String classifyId, String dateType, LocalDate start, LocalDate end, Set<String> deviceIds, String devicePropertyId);

    /**
     * 设备求和值，各分类统计
     *
     * @param classifyId
     * @param dateType
     * @param start
     * @param end
     * @param deviceIds
     * @param devicePropertyId
     * @return
     */
    List<DeviceMeasureDateDTO> sumTreeReal(String classifyId, String dateType, LocalDate start, LocalDate end, Set<String> deviceIds, String devicePropertyId);

    /**
     * 设备求均值，各分类统计
     *
     * @param classifyId
     * @param queryType
     * @param checkFormat
     * @param checkFormat1
     * @param deviceIdSet
     * @param devicePropertyId
     * @return
     */
    List<DeviceMeasureDateDTO> avgTree(String classifyId, String queryType, LocalDate checkFormat, LocalDate checkFormat1, Set<String> deviceIdSet, String devicePropertyId);
}
